const login = () => {
  return new Promise((resolve, reject) => {
    wx.login({
      success: (res) => {
        // console.log(res);
        resolve(res.code);
      },
      fail: (err) => {
        reject(err);
      },
    });
  });
};
